<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'HomeController@Index')->name('index');

Route::get('/contato', 'ContatosController@Index')->name('contato');
Route::post('/contato', 'ContatosController@store')->name('contato.post');

Route::get('/termos', 'TermosController@Index')->name('termo');

Route::get('/hosts', 'CatalogoController@ListRoutes')->name('catalogo.list');
Route::get('/catalogo', 'CatalogoController@Index')->name('catalogo');
Route::post('/catalogo', 'CatalogoController@store')->name('catalogo.store');
Route::post('/catalogo::result', 'CatalogoController@search')->name('catalogo.search');


Route::get('/tutorial', 'TutorialController@Index')->name('tutorial');
Route::get('/tutorial/{id}', 'TutorialController@Select')->name('tutorial.select');

Route::get('/associado', 'AssociadosController@Index')->name('associado');
Route::get('/download', 'DownloadController@Index')->name('download');

Route::get('/blog', 'BlogController@Index')->name('blog');
Route::get('/blog/category{id}', 'BlogController@category')->name('blog.category');
Route::get('/blog/{id}', 'BlogController@post')->name('blog.post');

Route::get('/projetos', 'ProjetosController@Index')->name('projeto');

Route::get('/rs', 'RetroshareController@index')->name('retroshare');
Route::post('/rs', 'RetroshareController@store')->name('retroshare.store');